package com.jyy.prefabricated.utils;

/**
 * @author qu.hao
 * @date 2021-04-08- 10:25 上午
 * @email quhao.mi@foxmail.com
 */
public class HtmlText {

    private HtmlText() {

    }

    /**
     * html导出word的时候，必须将头信息修改成这个，不然打开word时候是web视图，而不是word的那个文本视图
     */
    public static final String WORD_HEAD = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n" +
            "<html xmlns=\"http://www.w3.org/TR/REC-html40\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\">" +
            "<head><meta name=\"ProgId\" content=\"Word.Document\" /><meta name=\"Generator\" content=\"Microsoft Word 12\" />" +
            "<meta name=\"Originator\" content=\"Microsoft Word 12\" /> " +
            "<!--[if gte mso 9]><xml><w:WordDocument><w:View>Print</w:View></w:WordDocument></xml><[endif]-->" +
            "</head>";

    public static final String WORD_FOOT = "</html>";

    public static final String CONTEXT = "<head>  <meta charset=\"UTF-8\">  <title>Title</title>  <style>    * {      margin: 0;      padding: 0;      font-size: 16px;      color: #323232;      font-weight: bold;    }    html,    body {      /*height: 100%;*/    }    .contianer {      width: 500px;      padding: 15px 0 0 15px;      box-sizing: border-box;    }    .flex {      display: flex;    }    .layout_column {      display: flex;      flex-direction: column;    }    .layout_bottom {      display: flex;      align-items: flex-end;    }    .layout_center {      display: flex;      align-items: center;    }    h3 {      text-align: center;    }    .option-box {      padding: 10px 0 0 20px;      box-sizing: border-box;    }    .underline {      width: 80px;      border-bottom: 1px #323232 solid;    }  </style></head><body>  <div class=\"contianer\">    <h3>831测试试卷</h3>    <br />    <div class=\"layout_bottom\">      <span>姓名:</span>      <div class=\"underline\"></div>    </div>    <br />    <div class=\"flex\">      <span>注意事项:</span>      <div class=\"layout_column\">        <span>1.答题前填写好自己的姓名等信息</span>        <span>2.请将答案正确填写在答题卡上</span>      </div>    </div>    <br /><div><div>1.(多选题 20.0分)组织行为学研究的层次有</div> <div class=\"option-box layout_column\"><span>A.心理学</span></div> <div class=\"option-box layout_column\"><span>B.社会学</span></div> <div class=\"option-box layout_column\"><span>C.人类学</span></div> <div class=\"option-box layout_column\"><span>D.政治学</span></div></div><br /><div><div>2.(多选题 20.0分)组织行为学的研究方法</div> <div class=\"option-box layout_column\"><span>A.调查法</span></div> <div class=\"option-box layout_column\"><span>B.面谈法</span></div> <div class=\"option-box layout_column\"><span>C.实验法</span></div> <div class=\"option-box layout_column\"><span>D.观察法</span></div></div><br /></div></body>\n";

}
